package com.ruoyi.volunteercollege.service.impl;

import com.ruoyi.volunteercollege.domain.ExamVolunteerCollege;
import com.ruoyi.volunteercollege.mapper.ExamVolunteerCollegeMapper;
import com.ruoyi.volunteercollege.service.IExamVolunteerCollegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamVolunteerCollegeServiceImpl implements IExamVolunteerCollegeService {

    @Autowired
    private ExamVolunteerCollegeMapper volunteerCollegeMapper;

    @Override
    public ExamVolunteerCollege selectVolunteerCollegeById(Long id) {
        return volunteerCollegeMapper.selectVolunteerCollegeById(id);
    }

    @Override
    public List<ExamVolunteerCollege> selectVolunteerCollegeList() {
        return volunteerCollegeMapper.selectVolunteerCollegeList();
    }

    @Override
    public int insertVolunteerCollege(ExamVolunteerCollege volunteerCollege) {
        return volunteerCollegeMapper.insertVolunteerCollege(volunteerCollege);
    }

    @Override
    public int updateVolunteerCollege(ExamVolunteerCollege volunteerCollege) {
        return volunteerCollegeMapper.updateVolunteerCollege(volunteerCollege);
    }

    @Override
    public int deleteVolunteerCollegeById(Long id) {
        return volunteerCollegeMapper.deleteVolunteerCollegeById(id);
    }
}
